package com.sdp.right.view;


import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdp.core.bizc.annotation.ViewColumn;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhaoshaopo
 * @since 2021-04-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SysRolePersonView extends Model<SysRolePersonView>{

    private static final long serialVersionUID=1L;

    /**
     * 主键
     */
    @ViewColumn("p.key_id")
    private String keyId;
    
    @ViewColumn("e.org_no")
    private String orgNo;
    
    @ViewColumn("e.emp_name")
    private String empName;
    
    @ViewColumn("e.emp_no")
    private String empNo;

    /**
     * 人员账号
     */
    @ViewColumn("p.account_no")
    private String accountNo;

    /**
     * 角色编号
     */
    @ViewColumn("p.role_no")
    private String roleNo;

    /**
     * 排序号
     */
    @ViewColumn("p.role_person_sort")
    private Integer rolePersonSort;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ViewColumn("p.create_time")
    private Date createTime;


}
